package com.et.u1.vm.start;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import androidx.lifecycle.ViewModelProvider;

import com.et.u1.databinding.FragmentInletBinding;
import com.et.u1.vm.base.BaseFragment;
import com.et.u1.vm.home.HomeFragment;

import org.jetbrains.annotations.NotNull;

public class InletFragment extends BaseFragment<FragmentInletBinding, InletViewModel> {

    public static InletFragment newInstance() {
        return new InletFragment();
    }

    @NotNull
    @Override
    public FragmentInletBinding provideViewBinding(@NotNull LayoutInflater inflater, @org.jetbrains.annotations.Nullable ViewGroup container, @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
        return FragmentInletBinding.inflate(inflater, container, false);
    }

    @NotNull
    @Override
    public InletViewModel provideViewModel() {
        return new ViewModelProvider(this).get(InletViewModel.class);
    }

    @Override
    public void initEvent() {

    }

    @Override
    public void onStart() {
        super.onStart();

    }

    @Override
    public void onResume() {
        super.onResume();
        // TODO
        replaceFragment(HomeFragment.newInstance());
    }


    @Override
    public void onPause() {
        super.onPause();
        // TODO
    }
}